<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>老虎机</title>
		<style type="text/css">
			html,
			body {
				width: 100%;
				height: 100%;
				overflow: hidden;
			}
			* {
				margin: 0;
				padding: 0;
			}
			.super {
				position: relative;
				width: 100%;
				height: 100%;
			}
			
			.super img {
				width: 100%;
			}
			.laohuji {
				position: relative;
				width: 100%;
				height: 100%;
				background-color: rgba(0,0,0,0);
			}
			.laohuji div {
				width: 29.33%;
				margin: 0 2%;
				height: 100%;
				float: left;
				box-sizing: border-box;
				overflow: hidden;
				background-color: red;
				background-image: url(img/num2.jpg);
				background-size: 100%;
				background-position: 0 0;
			}
			.head {
				position: relative;
			}
			.head img {
				display: block;
				width: 100%;
			}
			.head .grad3 {
				position: absolute;
				/*border: 2px solid  #f19b00;*/
				box-sizing: border-box;
				border-radius: 10px;
				overflow: hidden;
				top: 17%;
				padding: 6% 0;
				width: 77%;
				height: 35%;
				left: 11.3%;
			} 
			.body {
				background-color: #f5c519;
				height: 300px;
			}
			
		</style>
		
	</head>
	<body>
		
		<div class="super">
			
			<div class="head">
				<img src="img/tou.gif" />
				<div class="grad3">
					<div class="laohuji">
						<div></div>
						<div></div>
						<div></div>
					</div>
				</div>
			</div>
			<div class="body">
				
			</div>
			
			
		</div>
		
		<!-- 引入老虎机 -->
		<script type="text/javascript" src="js/laohuji.js" ></script>
		
		<script>
			
			
			var lhj;
			window.onload = function(){
				// 实例化
				lhj = new laohuji(".grad3");
			}
			
			setTimeout(function(){
				lhj.start(2, 8, 6);
			}, 1000)
			
			
		</script>
		
	</body>
</html>
